import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
// import Layout from "@/views/index/layout.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "首页",
    redirect: "/home",
  },
  {
    path: "/home",
    name: "Home",
    component: () => import("@/views/home/index.vue"),//rtc模式
    // component: () => import("@/views/home/liveIndex.vue"),//live模式
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
